/*
 * @Descripttion:
 * @Author: voanit
 * @Date: 2022-03-22 08:39:12
 * @LastEditors: voanit
 * @LastEditTime: 2022-03-22 16:37:25
 */
import { createStore, applyMiddleware } from 'redux'
/* 导入reducer */
import reducer from './reducer'

/* 导入第三方中间件==做异步操作 */
import thunk from 'redux-thunk'
import logger from 'redux-logger'
import { composeWithDevTools } from 'redux-devtools-extension'
/* 创建store对象 */
export default createStore(
  reducer,
  composeWithDevTools(applyMiddleware(thunk, logger))
)
/*  */
